﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace RedisDotNet.Tests
{
    [TestClass]
    public class TestCheck
    {
        [TestMethod, ExpectedException(typeof(ArgumentNullException))]
        public void TestIsNotNullAssertsNull()
        {
            Check.IsNotNull(null, "test");
        }

        [TestMethod]
        public void TestIsNotNullAcceptsNonNull()
        {
            Check.IsNotNull(new object(), "test");
        }
    }
}
